package com.cssw.fyzb.core.dao.acct;

import com.cssw.fyzb.core.model.dodb.AcctAdjust;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.Date;


/**
 * @Author zhouxu
 * @create 2020-12-21 16:04
 */
@Repository
public class AcctAdjustDaoImpl implements AcctAdjustDao{

    @Override
    public  void addAcctLog(Long userId, String acctType, Long type, BigDecimal fee, String remark) {
        AcctAdjust acctAdjust = new AcctAdjust();
        acctAdjust.setUserId(userId);
        acctAdjust.setAcctType(acctType);
        acctAdjust.setType(type);
        acctAdjust.setAmount(fee);
        acctAdjust.setTransferTime(new Date());
        acctAdjust.setRemark(remark);
        acctAdjust.save();

    }


}
